import { defineStore } from 'pinia'
import { getBusList } from '@/api/common'

export const useCommonStore = defineStore('common', {
    state: () => ({
        // 总线类型列表
        busTypeList: []
    }),
    actions: {
        async getBusTypeList() {
            const res = await getBusList()
            this.busTypeList = res.data || []
        }
    },
})
